package com.fcscs.ecms.service;

import java.util.List;

import org.springframework.stereotype.Service;

import com.fcscs.cservice.domain.Advertisement;
import com.fcscs.cservice.service.VersionableManager;

@Service
public interface ECMSAdvertiseManager extends VersionableManager {

	Advertisement getAdvertisement(long id);
	
	List<Advertisement> getAdvertisementList(long orgId, long propId, boolean isCurrent); //isCurrent true: current; false: scheduled

	List<Advertisement> getAdvertisementList(long orgId, long propId, long versionId); //get specified version data

	List<Advertisement> saveAdvertisementList(List<Advertisement> adList); //used to save display order

	Advertisement createAdvertisement(Advertisement ad);

	Advertisement saveAdvertisement(Advertisement ad);
	
	boolean deleteAdvertisement(Advertisement ad);

	boolean permDeleteAdvertisement(Advertisement ad);

	List<com.fcscs.cservice.domain.model.Advertisement> getAdvertisementViewList(long orgId, long propId); //used by web service, get current version
}
